﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.IO.IsolatedStorage;
using System.Windows.Media.Imaging;
using System.IO;

namespace XiaMiRingtone
{
    public partial class about : PhoneApplicationPage
    {
        public about()
        {
            InitializeComponent();
            SetSkin();
        }

        private void SetSkin()
        {
            var store = IsolatedStorageFile.GetUserStoreForApplication();
            if (store.FileExists("skin.jpg"))
            {
                using (IsolatedStorageFileStream stream = new IsolatedStorageFileStream("skin.jpg", FileMode.Open, store))
                {
                    BitmapImage bi = new BitmapImage();
                    bi.SetSource(stream);
                    Ib.ImageSource = bi;
                }
            }
        }
    }
}